package ar.com.psicosoft.model.psicosoft;

import java.io.Serializable;

import javax.persistence.*;

/**
 * The persistent class for the "tratamientoDiagnostico" database table.
 * 
 */
@Entity
@Table(name = "\"tratamientoDiagnostico\"", schema = "psicosoft")
@NamedQuery(name = "TratamientoDiagnostico.findAll", query = "SELECT t FROM TratamientoDiagnostico t")
public class TratamientoDiagnostico implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private TratamientoDiagnosticoPK id;

	// bi-directional many-to-one association to Diagnostico
	@ManyToOne
	@JoinColumn(name = "\"idDiagnostico\"", nullable = false, insertable = false, updatable = false)
	private Diagnostico diagnostico;

	public TratamientoDiagnostico() {
	}

	public TratamientoDiagnosticoPK getId() {
		return this.id;
	}

	public void setId(TratamientoDiagnosticoPK id) {
		this.id = id;
	}

	public Diagnostico getDiagnostico() {
		return this.diagnostico;
	}

	public void setDiagnostico(Diagnostico diagnostico) {
		this.diagnostico = diagnostico;
	}

}